package cn.boysoft.module.security.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.boysoft.core.annotation.JEEEntityDeclare;
import cn.boysoft.core.model.entity.BaseEntity;

@Table(name="jee_post")
@Entity
@JEEEntityDeclare(name="岗位信息")
public class PostEntity extends BaseEntity{
	 @Column(length=36)
	 private String name;
	 @Column(length=255)
	 private String remark;
	 @ManyToOne
	 @JoinColumn(name = "parentId")
	 private PostEntity parentPost;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public PostEntity getParentPost() {
		return parentPost;
	}
	public void setParentPost(PostEntity parentPost) {
		this.parentPost = parentPost;
	}
	 
	 
}
